package com.cheer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cheer.entity.ActivityEntity;
import com.cheer.entity.OaActivityPartiEntity;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface OaActivityPartiService extends IService<OaActivityPartiEntity> {

    /**
     * 获取参与人数根据活动ID
     * @param actId 活动ID
     * @return
     */
    Integer getParticipant(Integer actId);

    /**
     * 根据用户ID 和 活动ID
     * @param userId
     * @param actId
     * @return
     */
    OaActivityPartiEntity getByUserIdAndActId(Integer userId, Integer actId);


}
